import 'package:dio/dio.dart';
Future getHttpPost(String url,Map<String,String> map) async{
  print(map);
  try{
    Response response;
    Dio dio=Dio();
    dio.options.contentType="application/x-www-form-urlencoded; charset=UTF-8";
    dio.options.responseType=ResponseType.plain;
    response=await dio.post(url,data: map);
    if(response.statusCode==200){
      print("response.data=======${response.data}");
      return response.data;
    }else{
      throw Exception("请求失败");
    }
  }catch(e){
    print(e);
  }
}






